<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:include="common/inc"></div>
    <div id="userinfo"></div>
    <input type="hidden" id="userid" name="userid" th:value="${application.user.uId}">
</body>
<script>
    $(function(){
        getUserInfo();
    })
    function getUserInfo() {
        var userid=$("#userid").val();
        $.ajax({
            url:"queryUserInfo",
            type:"get",
            dataType:"html",
            data:{userid:userid},
            success:function (data) {
                $("#userinfo").html(data);
            },error:function () {
                alert("查询用户信息失败！");
            }
        })
    }
</script>
</html>